<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Failed to Execute a Hyper-V Backup Job and the Error Details Contain &quot;Read File Failed, Error: 22&quot;">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002164614056.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000002200100353">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Failed to Execute a Hyper-V Backup Job and the Error Details Contain "Read File Failed, Error: 22"</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000002200100353"></a><a name="EN-US_TOPIC_0000002200100353"></a>

<h1 class="topictitle1">Failed to Execute a Hyper-V Backup Job and the Error Details Contain "Read File Failed, Error: 22"</h1>
<div><div class="section"><h4 class="sectiontitle">Symptom</h4><p>A Hyper-V backup job fails to be executed, and the VM to be backed up cannot be started. A message is displayed, indicating that the disk file is occupied by another process. Assume you log in to the OceanProtect WebUI, choose <strong>Protection</strong> &gt; <strong>Clients</strong>, locate the row that contains the client, and export logs. The <strong>VirtualPlugin.log</strong> file contains "Read file failed, error: 22".</p>
</div>
<div class="section"><h4 class="sectiontitle">Possible Causes</h4><p>The Hyper-V VM disk file to be backed up is occupied by another process of the Hyper-V host. As a result, an error is reported when the client reads the disk file during the backup process. The error message shows "22: ERROR_BAD_COMMAND The device does not recognize the command."</p>
</div>
<div class="section"><h4 class="sectiontitle">Troubleshooting</h4><ol><li><span>Log in to the Hyper-V host machine to be backed up.</span></li><li><span>Open the Windows task manager. On the <span class="uicontrol"><b>Performance</b></span> tab page, click <strong>Open Resource Monitor</strong>.</span></li><li><span>Switch to the <span class="uicontrol"><b>CPU</b></span> tab. On the <span class="uicontrol"><b>Associated Handles</b></span> tab page, search for the name of the occupied disk file. Obtain the disk file name from the error information about the VM startup job.</span></li><li><span>Manually stop the process that occupies the disk file.</span></li><li><span>Start the VM to be backed up and check whether the VM can start up properly.</span><p><ul><li>If yes, the fault is rectified.</li><li>If no, contact Huawei technical support engineers.</li></ul>
</p></li></ol>
<p></p>
<p></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002164614056.html">FAQs</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>